import Vue from 'vue'
import Router from 'vue-router'
import CloudNote from '@/components/cloudnote'
import CloudGroup from '@/components/webcooperate'
import Home from  '@/components/home'
import Login from '@/components/login'
import Hello from '@/components/HelloWorld'
import ztree from '@/components/ztree'
import Register from '@/components/register'
import StepOne from '@/components/compo/stepone'
import StepTwo from '@/components/compo/steptwo'
import StepThree from '@/components/compo/stepthree'
import  newest from  '@/components/compo/web/newest'
import  share from  '@/components/compo/web/share'
import  mydoc from  '@/components/compo/web/mydoc'
import  xing from  '@/components/compo/web/xing'
import  dustbin from  '@/components/compo/web/dustbin'
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path:'/web',
      name:'cloudnote',
      component:CloudNote,
      children:[
        {path:'/web/newest',
        name:'newest',
        component:newest
        },
        {path:'/web/share',
          name:'share',
          component:share
        },
        {path:'/web/mydoc',
          name:'mydoc',
          component:mydoc
        },
        {path:'/web/xing',
          name:'xing',
          component:xing
        },
        {path:'/web/dustbin',
          name:'dustbin',
          component:dustbin
        },
      ]
    },
    {
      path:'/hello',
      name:'hello',
      component:Hello
    },
    {
      path:'/ztree',
      name:'ztree',
      component:ztree
    },
    {
      path:'/group',
      name:'cloudgroup',
      component:CloudGroup
    },
    {
      path:'/reg',
      name:'register',
      component:Register,
      children:[
        {
          path:'/reg/stepone',
          name:'stepone',
          component:StepOne
        },
        {
          path:'/reg/steptwo',
          name:'steptwo',
          component:StepTwo
        },
        {
          path:'/reg/stepthree',
          name:'stepthree',
          component:StepThree
        },
        ]
    }
  ]
})
